import React, { Component } from "react";
import './style.scss'
class Header extends Component {
    constructor(props) {
        super(props);
        this.state = {
            value: "",
        };
    }

    render() {
        const { value } = this.state;
        return (
            <div className="header">
                <input type="text" value={value} onChange={this.changeValue} />
            </div>
        );
    }
    changeValue = (ev) => {
        this.setState({ value: ev.target.value });
    };
}

export default Header;
